package com.yunsom.testdemo.design.bridge;

/**
 * @author Xbao
 * @description 桥接模式
 * @date 2022/6/17 11:46
 */
public class TestBridge {

  public static void main(String[] args) {
    BaseShape redCircle = new Circle(100, 0, 0, new RedCircle());
    BaseShape greenCircle = new Circle(100, 0, 0, new GreenCircle());
    redCircle.draw();
    System.out.println("--");
    greenCircle.draw();
  }
}
